package com.example.test.api;

import com.example.test.contract.CreateCourseParam;
import com.example.test.suppert.base.result.BaseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;

/**
 * Created by lsl on 2021/3/5.
 */
@Api(tags = "课程rest")
@RestController
@RequestMapping("course")
public interface CourseRest {

    @PostMapping("/_create")
    @ApiOperation("新增用户课程成绩")
    BaseResult<Boolean> create(@RequestBody @Valid CreateCourseParam param);
}
